<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>差值</h1>
        <div>{{msg}} sss {{msg}} </div>
        <h1>v-text</h1>
        <div v-text="msg"></div>
        <h1>v-modal</h1>
        <input type="text" v-model='msg'>

        <h1>作业  v-html</h1>
        <div v-html="htmlDemo"></div>
        <button v-on='clickTest'>点击测试v-on</button>
    </div>
    <script src='./dep.js'></script>
    <script src='./watcher.js'></script>
    <script src='./observer.js'></script>
    <script src='./compiler.js'></script>
    <script src='./vue.js'></script>
    <script >
        let vm = new Vue({
            el:'#app',
            data:{
                msg:'你好',
                obj:{
                    a:1,b:2
                },
                htmlDemo:'<ul><li>v-html渲染的内容</li><li>2</li><li>3</li></ul>'
            },
            methods:{
                clickTest(){
                    alert('test')
                }
            }
        })
        vm.obj.a={aaa:111}
        console.log(vm)
    </script>
</body>
</html>